import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const torqueConverterApi = {
    // 添加变矩器 @author 何杺
    addTorqueConverter: (data) => {
        return postAxios('/torqueConverter/add', data);
    },
    // 分页查询变矩器 @author 何杺
    queryTorqueConverter: (data) => {
        return postAxios('/torqueConverter/page/query', data);
    },
    // 批量删除变矩器 @author 何杺
    batchDeleteTorqueConverter: (idList) => {
        return postAxios('/torqueConverter/deleteByIds', idList);
    },
    // 修改变矩器  @author 何杺
    updateTorqueConverter: (data) => {
        return postAxios('/torqueConverter/update',data);
    },
    // 导出全部  @author 何杺
    exportAll:(data)=>{
        return postDownloadAxios('/torqueConverter/export/all',data);
    },
    // 批量导出  @author 何杺
    batchExport: (idList) => {
        return postDownloadAxios('/torqueConverter/export/batch', idList);
    },
};
